﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EmployeeExport_Choose.aspx.cs"
    Inherits="EmployeeExport_Choose" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../StyleSheet.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" id='skin' type="text/css" href="../Js/pop/skin/qq/ymPrompt.css" />

    <script language="JavaScript">

        document.oncontextmenu = new Function("event.returnValue=false;"); //禁止右键功能,单击右键将无任何反应
        document.onselectstart = new Function("event.returnValue=false;"); //禁止先择,也就是无法复制
    </script>

    <script language="javascript">
        function selAllCheckboxes() {
            var c = document.getElementById('chkSelAll');
            var isSel = c.checked;

            var boxes = document.getElementById('ChkChoose').getElementsByTagName("input");
            if (isSel) {
                for (var i = 0; i < boxes.length; i++) {
                    boxes[i].checked = true;
                }
            }
            else {
                for (var i = 0; i < boxes.length; i++) {
                    var index = boxes[i].name.substring(boxes[i].name.indexOf("$")+1);
                    if (index > 7 && index != 10)
                        boxes[i].checked = false;
                }
            }
        }
    </script>

    <style>
        .roundbtn
        {
            display: inline-block;
            height: 22px;
            line-height: 22px;
            background: url(../Image/UI/btnall.png) right 0 no-repeat;
            padding: 0 5px 0 0;
        }
        .roundbtn a
        {
            display: inline-block;
            height: 22px;
            background: url(../Image/UI/btnall.png) left -22px no-repeat;
            padding: 0 3px 0 8px;
            outline: none;
            text-decoration: none;
            color: Black;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table style="width: 100%;">
        <tr>
            <td align="right">
                <div id="Back">
                    <asp:LinkButton ID="EmpBack" runat="server" CssClass="BackLink" OnClick="EmpBack_Click"><span>&lt;&lt; 返回人事列表</span></asp:LinkButton>
                </div>
            </td>
        </tr>
        <tr>
            <td style="height: 30px">
            </td>
        </tr>
        <tr>
            <td align="center">
                <div id="ym-window" style="width: 800px; height: 430px;">
                    <div class="ym-tl" id="ym-tl">
                        <div class="ym-tr">
                            <div class="ym-tc" style="cursor: move;">
                                <div class="ym-header-text">
                                    员工栏目选择</div>
                                <div class="ym-header-tools">
                                    <div class="ymPrompt_min" title="最小化" style="display: none;">
                                        <strong>0</strong></div>
                                    <div class="ymPrompt_max" title="最大化" style="display: none;">
                                        <strong>1</strong></div>
                                    <div class="ymPrompt_close" title="关闭" style="display: none;">
                                        <strong>r</strong></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="ym-ml" id="ym-ml">
                        <div class="ym-mr">
                            <div class="ym-mc">
                                <div class="ym-body" style="position: relative; height: 400px; text-align: left;">
                                    <asp:CheckBoxList ID="ChkChoose" runat="server" RepeatColumns="4" RepeatDirection="Horizontal"
                                        Width="100%" CellPadding="5" CellSpacing="5">
                                        <asp:ListItem Selected="True" Value="EmployeeID" Enabled="false">员工编号</asp:ListItem>
                                        <asp:ListItem Selected="True" Value="EmpName" Enabled="false">员工姓名</asp:ListItem>
                                        <asp:ListItem Selected="True" Value="Birthday">出生年月</asp:ListItem>
                                        <asp:ListItem Selected="True" Value="Sex">性别</asp:ListItem>
                                        <asp:ListItem Selected="True" Value="DepartmentName" Enabled="false">所在部门</asp:ListItem>
                                        <asp:ListItem Selected="True" Value="JobName" Enabled="false">职位名称</asp:ListItem>
                                        <asp:ListItem Selected="True" Value="Accession" Enabled="false">入职日期</asp:ListItem>
                                        <asp:ListItem Selected="True" Value="EmpStatus" Enabled="false">员工状态</asp:ListItem>
                                        <asp:ListItem Value="Dimission">离职日期</asp:ListItem>
                                        <asp:ListItem Value="Country">国籍</asp:ListItem>
                                        <asp:ListItem Selected="True" Value="IDCard">身份证号</asp:ListItem>
                                        <asp:ListItem Value="IDCardAddress">身份证地址</asp:ListItem>
                                        <asp:ListItem Value="Regperres">户籍地址</asp:ListItem>
                                        <asp:ListItem Value="Education">学历</asp:ListItem>
                                        <asp:ListItem Value="Major">专业</asp:ListItem>
                                        <asp:ListItem Value="Graduate">毕业时间</asp:ListItem>
                                        <asp:ListItem Value="School">毕业院校</asp:ListItem>
                                        <asp:ListItem Value="Passport">护照号</asp:ListItem>
                                        <asp:ListItem Value="Passdeadline">护照有效期</asp:ListItem>
                                        <asp:ListItem Value="Residedeadline">外籍居留证有效期</asp:ListItem>
                                        <asp:ListItem Value="Workdeadline">外籍就业证有效期</asp:ListItem>
                                        <asp:ListItem Value="PerRemark">个人信息备注</asp:ListItem>
                                        <asp:ListItem Value="Title">职称</asp:ListItem>
                                        <asp:ListItem Value="CompetencePermit">资格认证1</asp:ListItem>
                                        <asp:ListItem Value="CompetencePermit2">资格认证2</asp:ListItem>
                                        <asp:ListItem Value="CompetencePermit3">资格认证3</asp:ListItem>
                                        <asp:ListItem Value="Shoulderdocent">是否能担任内部讲师</asp:ListItem>
                                        <asp:ListItem Value="JobType">用工类型</asp:ListItem>
                                        <asp:ListItem Value="WorkContractType">合同类别</asp:ListItem>
                                        <asp:ListItem Value="Framework">公司组织</asp:ListItem>
                                        <asp:ListItem Value="ProbationerShip">试用期（月）</asp:ListItem>
                                        <asp:ListItem Value="HrRemark">人事备注</asp:ListItem>
                                        <asp:ListItem Value="Mobile">手机号</asp:ListItem>
                                        <asp:ListItem Value="Email">Email</asp:ListItem>
                                        <asp:ListItem Value="ContactPeople">紧急联系人</asp:ListItem>
                                        <asp:ListItem Value="ContactPhone">联系人电话</asp:ListItem>
                                        <asp:ListItem Value="Extension">分机号</asp:ListItem>
                                        <asp:ListItem Value="Address">家庭住址</asp:ListItem>
                                    </asp:CheckBoxList>
                                    <div style="text-align: center; margin-top: 5px;">
                                        <span style="float: left; margin-left: 10px;">
                                            <input id="chkSelAll" type="checkbox" onclick="selAllCheckboxes();" />全选 </span>
                                    </div>
                                    <div style="text-align: center; margin-top: 15px;">
                                        <span class="roundbtn">
                                            <asp:LinkButton ID="btnExport" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;导&nbsp;&nbsp;&nbsp;&nbsp;出&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
                                                OnClick="OnExport"></asp:LinkButton>
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="ym-ml" id="ym-btnl" style="display: none;">
                        <div class="ym-mr">
                            <div class="ym-btn">
                            </div>
                        </div>
                    </div>
                    <div class="ym-bl" id="ym-bl">
                        <div class="ym-br">
                            <div class="ym-bc">
                            </div>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
